package com.ny.mapper;

import com.ny.domain.CourseReservationDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * CourseReservationMapper
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Mapper
public interface CourseReservationMapper {

    int insert(CourseReservationDO courseReservationDO);

    CourseReservationDO selectById(@Param("reservationId") Integer reservationId);

    CourseReservationDO selectByMemberIdAndCourseId(@Param("memberId") Integer memberId, @Param("courseId") Integer courseId);

    int countByCourseId(@Param("courseId") Integer courseId);

    int deleteById(@Param("reservationId") Integer reservationId);
}
